home *** CD-ROM | disk | FTP | other *** search
- echo off
- rem ╔═══════════════════════════════════════════════════════════════╗
- rem ║ ║
- rem ║ H A C K R O U N ║
- rem ║ ver 1.2 ║
- rem ║ ║
- rem ║ Demonstration routine for HACKER, a programmer's ║
- rem ║ multi-function shareware utility. ║
- rem ╚═══════════════════════════════════════════════════════════════╝
- hacker clear;fix cursor /off;note HACKER demonstration.;sound ruffle;what day>nul
- for %%a in (1 2 3) do echo
- set i=Saturday
- if errorlevel 6 goto a
- set i=Friday
- if errorlevel 5 goto a
- set i=Thursday
- if errorlevel 4 goto a
- set i=Wednesday
- if errorlevel 3 goto a
- set i=Tuesday
- if errorlevel 2 goto a
- set i=Monday
- if errorlevel 1 goto a
- set i=Sunday
- :a
- hacker what time
- set j=evening
- if errorlevel 170 goto b
- set j=afternoon
- if errorlevel 120 goto b
- set j=morning
- :b
- echo And a Good %i% %j% to you !
- rem Let's keep our environment clean, shall we ?
- set j=
- for %%a in (0 1 2 3 4 5 6 7 8 9 A B C D E F G) do echo
- hacker clear 15;sound gate;note I shall continue when you press a key.
- hacker sound fur /continue; clear 3;note I can signal !;sound also;sound charge
- hacker sound horn;sound pipe;sound dive;sound rays;sound alarm;sound alarm
- hacker sound siren;sound ride;clear 3;note I can change your cursor ! ;what mode
- set i=13
- if errorlevel 7 goto c
- set i=7
- :c
- hacker fix cursor 0 %i% /on;wait 1;fix cursor %i% 1;wait 1;fix cursor ? %i%>nul
- hacker wait 1;fix cursor /off;wait 1;clear 3;note I can ask silly questions.>nul
- echo
- echo
- hacker ask Have you stopped beating your wife ? {Y, N, S} 5
- if errorlevel 3 goto d
- if errorlevel 2 goto e
- if errorlevel 1 goto f
- echo I would not answer that either !
- goto g
- :d
- echo I beg you pardon !
- goto g
- :e
- echo Why not ?
- goto g
- :f
- echo Well, it is about time !
- :g
- hacker wait 1;clear 2;what drive >nul
- set i=Q:
- if errorlevel 17 goto h
- set i=P:
- if errorlevel 16 goto h
- set i=O:
- if errorlevel 15 goto h
- set i=N:
- if errorlevel 14 goto h
- set i=M:
- if errorlevel 13 goto h
- set i=L:
- if errorlevel 12 goto h
- set i=K:
- if errorlevel 11 goto h
- set i=J:
- if errorlevel 10 goto h
- set i=I:
- if errorlevel 9 goto h
- set i=H:
- if errorlevel 8 goto h
- set i=G:
- if errorlevel 7 goto h
- set i=F:
- if errorlevel 6 goto h
- set i=E:
- if errorlevel 5 goto h
- set i=D:
- if errorlevel 4 goto h
- set i=C:
- if errorlevel 3 goto h
- set i=B:
- if errorlevel 2 goto h
- set i=A:
- :h
- hacker is volume *
- if errorlevel 1 goto i
- hacker note Your current drive (%i%) has no label.
- goto j
- :i
- hacker note Your current drive (%i%) has a label.
- :j
- echo
- echo
- hacker what depth
- if errorlevel 1 goto k
- hacker note Your current directory is the root.
- goto l
- :k
- for %%a in (1 2 3 4 5 6 7 8 9 10 11 12) do if errorlevel %%a set i=%%a
- hacker note Your current directory is %i% levels below the root.
- :l
- echo
- echo
- hacker is dir batch dos misc test
- if errorlevel 8 goto m
- hacker note Your current directory is not BATCH, DOS, MISC or TEST
- goto n
- :m
- if errorlevel 8 set i=BATCH
- if errorlevel 4 set i=DOS
- if errorlevel 2 set i=MISC
- if errorlevel 1 set i=TEST
- hacker note Your current directory is %i%.
- :n
- hacker wait 3;clear 13;note I can find hidden files.;show hidden>nul
- set i=no
- if not errorlevel 1 goto p
- if errorlevel 14 goto o
- for %%a in (1 2 3 4 5 6 7 8 9 10 11 12 13) do if errorlevel %%a set i=%%a
- goto p
- :o
- set i=many
- :p
- echo
- hacker note You have %i% hidden files in this directory.;wait 5
- rem Let's keep our environment clean, shall we ?
- set i=
- hacker clear 7;note I can fix files and report other useful information.
- echo
- hacker note ...but you will just have to see for yourself.
- echo
- hacker ask Aw, heck - one more. Wanna re-boot or clean exit ? {b, c} 8
- if errorlevel 2 goto z
- if errorlevel 1 goto y
- goto z
- :y
- hacker boot
- rem ╔══════════════════════════════════════════════════════╗
- rem ║ Here are your special characters ! ║
- rem ╚══════════════════════════════════════════════════════╝
- rem The folloing line is 'ECHO', space, space, BACKSPACE
- echo
- rem
- rem The folloing line is 'ECHO', space, space, BEEP
- echo
- :z
- hacker clear 1;note Control of your box will be returned to you.;fix cursor /on>nul
- echo
- hacker clear -3;?